<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="./css/style.css">
    <link rel="stylesheet" href="./css/base.css">
    <link rel="stylesheet" href="./css/normalize.css">
    <link rel="stylesheet" href="./css/swiper-bundle.min.css">

    <script src="./js/jquery-3.6.0.min.js"></script>
    <script src="./js/swiper-bundle.min.js"></script>
</head>
<body>
<!---------------------------------header----------------------->
<iframe src="./header.php" frameborder="0" name="header_iframe" width="100%" scrolling="no"></iframe>
<main>
    <div class="wrapper shoping">
        <div class="brand clearfix">
            <h4>热门商品</h4>
        </div>
        <div class="andshop">
            <ul class="shop clearfix">
                <?php if(is_array($products)):foreach($products as $pro):?>
                <li>
                    <a href="./productInfo.php?id=<?=$pro['id']?>"><img src="./../../upload/<?=$pro['imgurl']?>" alt="">
                        <div class="sh-con">
                            <p><?=$pro['name']?></p>
                            <p>￥<?=$pro['price']?> <em></em></p>
                            <p><?=$pro['flname']?></p>
                        </div>
                    </a>
                </li>
                <?php endforeach; endif;?>
            </ul>
        </div>
    </div>
</main>
<iframe src="./footer.php" name="footer_iframe" width="100%" frameborder="0" scrolling="no" marginheight="0"></iframe>
</body>
</html>